<?php
use think\facade\Route;

// 管理资源路由
Route::resource('project', 'project.Index')
    ->only(['index', 'read', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);

// 分类资源路由
Route::resource('project/category', 'project.Category')
    ->only(['index', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);

// 状态资源路由
Route::resource('project/status', 'project.Status')
    ->only(['index', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);